import request from "@/utils/request";

export const upload = (file) => {
    return request({
        url: '/oss/uploadFile',
        headers: {'Content-Type': 'application/x-www-form-urlencoded'},
        method: 'post',
        data: file
    })
}


export  const deleteFile=(fileName)=>{
    return request({
        url:'/oss/deleteFile',
        method:"delete",
        params:{
            fileName
        }
    })
}